import request from '@/utils/request'

export function page(pageParam) {
  return request({
    url: '/gscloud_multishop/admin/index_marketing_img/page',
    method: 'get',
    params: pageParam
  })
}

export function get(marketingImgId) {
  return request({
    url: '/gscloud_multishop/admin/index_marketing_img/getById',
    method: 'get',
    params: {
      marketingImgId
    }
  })
}

export function save(data) {
  return request({
    url: '/gscloud_multishop/admin/index_marketing_img/save',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/gscloud_multishop/admin/index_marketing_img/update',
    method: 'put',
    data
  })
}

export function deleteById(marketingImgId) {
  return request({
    url: '/gscloud_multishop/admin/index_marketing_img/deleteById',
    method: 'post',
    params: {
      marketingImgId
    }
  })
}
